 <!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script>
			function add(){
				var sum=0;
			    for(var i=0;i<=arguments.length;i++){
				sum+=arguments[i];
			}
			    return sum;
			}
			console.log(add(4,5));
			console.log(add(4,5,6));
		</script>
	</body>
</html>
